package com.wanxi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanxi.model.Product;
import com.wanxi.model.ProductType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Chengbo Zhang
 */
@Mapper
public interface ProductDao extends BaseMapper<Product> {

    List<Product> findAllProduct();

    Product findProductById(Product product);

    List<Product> findProduct(Product product);

    List<Product> findProductBySome(Product product);

    int addProduct(Product product);

    int updateProduct(Product product);
}
